package com.example.design.patterns.geekbang.结构型.结构类似的模式.适配器模式.intro.对象适配器;

public class Adaptor implements ITarget {
    private Adaptee adaptee;

    public Adaptor(Adaptee adaptee) {
        this.adaptee = adaptee;
    }

    /**
     *
     */
    @Override
    public void f1() {
        adaptee.fa(); //委托给Adaptee
    }

    /**
     *
     */
    @Override
    public void f2() {
//...重新实现f2()...
    }

    /**
     *
     */
    @Override
    public void fc() {
        adaptee.fc();
    }
}
